package com.bdqn.springboot.controller;

import com.bdqn.springboot.service.BookuserService;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * (Bookuser)表控制层
 *
 * @author makejava
 * @since 2023-09-07 09:36:05
 */
@RestController
@RequestMapping("bookuser")
public class BookuserController {
    /**
     * 服务对象
     */
    @Resource
    private BookuserService bookuserService;


    /**
     * 删除数据
     *
     * @param id 主键
     * @return 删除是否成功
     */
    @DeleteMapping
    public ResponseEntity<Boolean> deleteById(Integer id) {
        return ResponseEntity.ok(this.bookuserService.deleteById(id));
    }

}

